<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : genreManage.xsl
    Created on : April 1, 2013, 9:43 PM
    Author     : tiwtiger
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:s="http://xml.netbeans.org/schema/genre"
exclude-result-prefixes="s">
    <xsl:output method="html"/>

    <!-- TODO customize transformation rules 
         syntax recommendation http://www.w3.org/TR/xslt 
    -->
    <xsl:template match="/">
        <html>
            <body>
                <xsl:apply-templates/>
            </body>
        </html>
    </xsl:template>
    <xsl:template match="s:Genres">
        <h1>Genre Manage</h1>
        <br/>
        <input type="button" value="Add new Genre"/>
        <input type="text" value="Search here"/>
        <table border="1" width="30%">
            <tr bgcolor="#9acd32">
                <td>Album ID</td>
                <td>Genre Name</td>
                <td>Update</td>
                <td>Delete</td>
            </tr>
            <xsl:for-each select="s:Genre">
                <tr>
                    <td>
                        <xsl:value-of select="@GenreID"/>
                    </td>
                    <td>
                        <xsl:value-of select="s:Name"/>
                    </td>
                    <td>
                        <input type="button" value="Update"/>
                    </td>
                    <td>
                        <input type="button" value="Delete"/>
                    </td>
                </tr>
            </xsl:for-each>
        </table>
    </xsl:template>
</xsl:stylesheet>